package com.china08.yxyapi.entity.mg.homework;

import java.util.Date;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 作业:班级 统计, 每天统计一次, 统计昨天截止的作业,按照班级进行统计;<br/>
 * 每个班级,如果此班级有截止的作业,进行统计产生一条数据.
 * 
 * @author Richard Wang
 *
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.tea.homework.task.class.report")
public class HomeworkClassForDayReport extends MongoBaseEntityNoId {

    /** 主键 */
    @Id
    private String id;

    /** 班级:ID */
    @Indexed
    @Field(value = "class_id")
    private String classId;

    /**
     * 班级名称
     */
    @Field(value = "class_nick")
    private String classNick;

    /** 学段 */
    @Field(value = "stage")
    private String stage;

    /** 学科 */
    @Field(value = "subject")
    private String subject;

    /** 学科名称 */
    @Field(value = "subject_name")
    private String subjectName;

    /**
     * 统计日期
     */
    @Indexed
    @Field(value = "statis_date")
    private Date statisDate;

    /** 学校:ID */
    @Field(value = "school_id")
    private String schoolId;

    /**
     * 完成比率, 存储 86.24,在前端显示 86.24%
     */
    @Field(value = "completion_rate")
    private Double completionRate;

    /**
     * 优秀率,存储 86.24,在前端显示 86.24%
     * 
     */
    @Field(value = "excellent_rate")
    private Double excellentRate;

    /**
     * 得分率,存储 86.24,在前端显示 86.24%
     * 
     */
    @Field(value = "score_rate")
    private Double scoreRate = 0d;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public Double getCompletionRate() {
        return completionRate;
    }

    public void setCompletionRate(Double completionRate) {
        this.completionRate = completionRate;
    }

    public Double getExcellentRate() {
        return excellentRate;
    }

    public void setExcellentRate(Double excellentRate) {
        this.excellentRate = excellentRate;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getClassNick() {
        return classNick;
    }

    public void setClassNick(String classNick) {
        this.classNick = classNick;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public Date getStatisDate() {
        return statisDate;
    }

    public void setStatisDate(Date statisDate) {
        this.statisDate = statisDate;
    }

    public String getStage() {
        return stage;
    }

    public void setStage(String stage) {
        this.stage = stage;
    }

    public Double getScoreRate() {
        return scoreRate;
    }

    public void setScoreRate(Double scoreRate) {
        this.scoreRate = scoreRate;
    }

}
